package com.huilan.hgt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.huilan.hgt.base.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 目录表
 * </p>
 *
 * @author ghy
 * @since 2018-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("T_CATALOGUE")
public class Catalogue extends BaseModel<Catalogue> {

    private static final long serialVersionUID = 1L;

    /**
     * 目录ID
     */
    @TableId(value = "CATALOGUE_ID", type = IdType.AUTO)
    private Integer catalogueId;

    /**
     * 目录名称
     */
    @TableField("CATALOGUE_NAME")
    private String catalogueName;


    public static final String CATALOGUE_ID = "CATALOGUE_ID";

    public static final String CATALOGUE_NAME = "CATALOGUE_NAME";

    @Override
    protected Serializable pkVal() {
        return this.catalogueId;
    }

}
